class CreateStocks < ActiveRecord::Migration
  def change
    create_table :stocks do |t|
      t.string :name
      t.string :company
      t.integer :purchase_quantity
      t.datetime :purchase_date
      t.decimal :total_purchase_cost
      t.integer :free_quantity
      t.integer :available_quantity
      t.decimal :sale_cost
      t.decimal :tax_percentage
      t.decimal :commission_percentage
      t.integer :person_id

      t.timestamps
    end
  end
end
